/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dungeonsolver;

import dungeonsolver.controller.PathFinder;
import dungeonsolver.helper.Utility;

/**
 *
 * @author LegACy
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
		//Create string
		String Algorithm		= args.length < 1 ? "DFS"			: args[0];
		String LabyrinthFile	= args.length < 2 ? "Labyrinth.txt" : args[1];
		String LogFile			= args.length < 3 ? "Log.txt"		: args[2];

		//Create path finder
		PathFinder Finder = new PathFinder(LabyrinthFile);

		//Find path
		Finder.calculatePath(Algorithm);
		System.out.println(Finder.getPath());

		//Print log
		Utility.instance().flushLog(LogFile);
    }

}
